package com.cqut.ktpspring.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqut.ktpspring.pojo.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper extends BaseMapper<Message> {

    int getNotReadCount(String receiveId);

    List<Message> getMessages(String receiveId, Integer status);

    void send(Message message);

    void read(List<String> ids);
}
